<html>
<body>
<h2>Hello World!</h2>
<h2><a href="springmvc/testRedirect">Test Redirect</a></h2>
<h2><a href="springmvc/testView">Test View</a></h2>
<h2><a href="springmvc/testViewAndResolver">Test ViewAndResolver</a></h2>

<%-- 模拟修改操作：
    1.原始数据为：1，Tom，123456，tom@163.com，12
    2.密码不能被修改。
    3.表单回显，模拟操作直接在表单填写对应的属性值
 --%>
<form action="springmvc/testModelAttribute" method="post">
    <input type="hidden" name="id" value="1">
    username: <input type="text" name="username" value="Tom" /><br />
    email: <input type="text" name="email" value="tom@163.com" /><br />
    age: <input type="text" name="age" value="12" /><br />
    <input type="submit" value="Submit">
</form>

<h2><a href="springmvc/testSessionAttributes">Test SessionAttributes</a></h2>
<h2><a href="springmvc/testMap">Test Map</a></h2>
<h2><a href="springmvc/testModelAndView">Test ModelAndView</a></h2>
<h2><a href="springmvc/testServletAPI">Test ServletAPI</a></h2>

<form action="springmvc/testPojo" method="post">
    username:<input type="text" name="username"/><br>
    password:<input type="password" name="password"/><br>
    email:<input type="text" name="email"/><br>
    age:<input type="text" name="age"/><br>
    province:<input type="text" name="address.province"/><br>
    city:<input type="text" name="address.city"/><br>
    <input type="submit" name="submit testPojo"/><br>
</form>

<h2><a href="springmvc/testCookieValue">Test CookieValue</a></h2>
<h2><a href="springmvc/testRequestHeader">Test RequestHeader</a></h2>
<h2><a href="springmvc/testRequestParam?username=zhangsan&age=25">Test RequestParam</a></h2>

<form action="springmvc/testRestful/1" method="post">
    <input type="hidden" name="_method" value="PUT"/>
    <input type="submit" value="Restful PUT"/>
</form>
<form action="springmvc/testRestful/1" method="post">
    <input type="hidden" name="_method" value="DELETE"/>
    <input type="submit" value="Restful DELETE"/>
</form>
<form action="springmvc/testRestful" method="post">
    <input type="submit" value="RestfulPost"/>
</form>
<h2><a href="springmvc/testRestful/1">Test Restful GET</a></h2>

<h2><a href="springmvc/testPathVariable/1">Test PathVariable</a></h2>
<h2><a href="springmvc/testAntPath/anything/abc">Test AntPath</a></h2>
<h2><a href="springmvc/testParamsAndHeads?username=zhangsan&age=11">Test ParamsAndHeads</a></h2>
<form action="springmvc/testMethod" method="post">
    <input type="submit" value="Submit"/>
</form>
<h2><a href="springmvc/testRequestMapping">Test RequestMapping</a></h2>
<h2><a href="helloworld">springmvc-helloworld</a></h2>
</body>
</html>
